package com.aizhixin.lab.project.course.repository;

import com.aizhixin.lab.project.course.entity.TeacherExercises;
import com.aizhixin.lab.project.template.entity.Exercises;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherExercisesRepository extends JpaRepository<TeacherExercises,String> {
        List<TeacherExercises> findByTaskId(String taskId);
        Integer deleteByTaskId(String taskId);
        Integer countByTaskId(String taskId);
        List<TeacherExercises> findByIdIn(List<String> ids);
        List<TeacherExercises> findByTaskIdAndQuestionType(String taskId,Integer questionType);
}
